import request from '@/utils/request'

export function queryMoreParam(query) {
  return request({
    url: '/basic/dayMain/moreParam',
    method: 'get',
    params: query
  })
}

export function report(query) {
  return request({
    url: '/basic/dayMain/report',
    method: 'get',
    params: query
  })
}

export function genDayData(query) {
  return request({
    url: '/basic/dayMain/genDayData',
    method: 'get',
    params: query
  })
}

// 查询日数据main列表
export function listDayMain(query) {
  return request({
    url: '/basic/dayMain/list',
    method: 'get',
    params: query
  })
}

// 查询日数据main详细
export function getDayMain(id) {
  return request({
    url: '/basic/dayMain/' + id,
    method: 'get'
  })
}

// 新增日数据main
export function addDayMain(data) {
  return request({
    url: '/basic/dayMain',
    method: 'post',
    data: data
  })
}

// 修改日数据main
export function updateDayMain(data) {
  return request({
    url: '/basic/dayMain',
    method: 'put',
    data: data
  })
}

// 删除日数据main
export function delDayMain(id) {
  return request({
    url: '/basic/dayMain/' + id,
    method: 'delete'
  })
}

// 导出日数据main
export function exportDayMain(query) {
  return request({
    url: '/basic/dayMain/export',
    method: 'get',
    params: query
  })
}
